Restricted partial quotients